#ifndef DISJOINT_SET_H
#define DISJOINT_SET_H

#include <cstring>
#include <iostream>

namespace mypointsto{

	const int default_size = 16384;

	struct disjoint_set{
		int size;
		int *p;
		disjoint_set();
		disjoint_set(int sz);
		~disjoint_set();
		int find(int i);
		void merge(int i, int j);
		void resize(int sz);
	};
}

#endif
